#!/bin/bash
# Start CMDB backend server

echo "=========================================="
echo "Starting CMDB Backend (Django + Channels)"
echo "=========================================="
echo "Server will run on: http://0.0.0.0:8000"
echo "Press Ctrl+C to stop"
echo "=========================================="

# Activate virtual environment
. .venv/bin/activate

# Change to backend directory
cd backend

# Start Daphne ASGI server
daphne -b 0.0.0.0 -p 8000 backend.asgi:application
